package cn.liye.pingfen.service;

import cn.liye.pingfen.pojo.dto.ComReviewsDTO;
import cn.liye.pingfen.pojo.dto.CompanyAddDTO;
import cn.liye.pingfen.pojo.dto.CompanyUpdateDTO;
import cn.liye.pingfen.pojo.dto.UserUpdateDTO;
import cn.liye.pingfen.pojo.entity.TbZhiWei;
import cn.liye.pingfen.pojo.vo.CompanyIndexVO;
import cn.liye.pingfen.pojo.vo.CompanyVO;
import cn.liye.pingfen.pojo.vo.TbZhiWeiVO;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICompanyService {
    void insertCompany(CompanyAddDTO companyAddDTO, ComReviewsDTO comReviewsDTO);

    PageInfo<CompanyVO> selectCompanyList(String companyName, int pageNum, int pageSize);

    PageInfo<CompanyIndexVO> selectCompanyListList(CompanyIndexVO companyIndexVO,int pageNum, int pageSize);

    List<TbZhiWeiVO> selectZhiWeiList(TbZhiWeiVO tbZhiWeiVO);

    int calculateScore(double stars);

    Double AUG(CompanyUpdateDTO companyUpdateDTO);
}
